package com.ruoyi.hospital.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员余额对象 customer_balance
 *
 * @author qichi
 * @date 2023-07-04
 */

public class CustomerBalance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员余额 */
    private Long id;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 会员余额 */
    @Excel(name = "会员余额")
    private BigDecimal balance;

    /** 会员等级 数据字典值 */
    @Excel(name = "会员等级 数据字典值")
    private Integer level;

    /** 结算方式 数据字典值 */
    @Excel(name = "结算方式 数据字典值")
    private Integer settlementType;

    /** 积分 */
    @Excel(name = "积分")
    private Long integral;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long version;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId()
    {
        return tenantId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setSettlementType(Integer settlementType)
    {
        this.settlementType = settlementType;
    }

    public Integer getSettlementType()
    {
        return settlementType;
    }
    public void setIntegral(Long integral)
    {
        this.integral = integral;
    }

    public Long getIntegral()
    {
        return integral;
    }
    public void setVersion(Long version)
    {
        this.version = version;
    }

    public Long getVersion()
    {
        return version;
    }
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("deptId", getDeptId())
            .append("balance", getBalance())
            .append("level", getLevel())
            .append("settlementType", getSettlementType())
            .append("integral", getIntegral())
            .append("version", getVersion())
            .append("createBy", getCreateBy())
            .append("customerId", getCustomerId())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
